<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="my" tagdir="/WEB-INF/tags/"%>
<!DOCTYPE html>
<html lang="zn_cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="./css/bootstrap.css" />
<script type="text/javascript" src="./js/jquery-1.11.1.js"></script>
<script type="text/javascript" src="./js/bootstrap.js"></script>
</head>
<body style="background-color:#d6dadb;">
	<div class="container" style="background-color:#ADDBE2;">
		<my:logo></my:logo>
		<div class="row"
			style="background-image: url('./img/top01.gif'); background-repeat: repeat-x; height: 40px">
			<div class="col-md-9">
				<img src="./img/icon1.gif" />结算页面
			</div>
			<div class="col-md-2">
				<a href="showaccount.htm">我的账户</a>
			</div>
		</div>
		<c:if test="${prices == null }">
			<div style="text-align: center">
				<h2>
					您的购物车里没有东西<a href="list.htm">返回购物</a>!!!
				</h2>
			</div>
		</c:if>
		<c:if test="${prices != null}">
			<div class="table-responsive">
				<div>
					<tr>
						<td><h2>
								你需要支付:<span style="color: red">￥${prices}</span>，请选择你的卡
							</h2></td>
						<td></td>
					</tr>
				</div>
				<form action="./user/updatebalance.do" method="post">
					<table id="mytable" class="table table-hover"
						style="text-align: center">
						<tr>
							<td>选择</td>
							<td>卡号</td>
							<td>余额</td>
						</tr>
						<c:forEach var="item" varStatus="status" items="${accountAll}">
							<tr>
								<td><input type="radio" name="choose" onclick="choose()"
									value="${item.creditcard}" /></td>
								<td>${item.creditcard}</td>
								<td>￥${item.balance}</td>
							</tr>
						</c:forEach>
						<tr>
							<td><input type="submit" value="确认支付"></td>
							<td></td>
							<td><a href="list.htm">继续购物</a></td>
						</tr>
					</table>
				</form>
			</div>
		</c:if>
		<div class="row">
				<div class="col-md-12"
					style="background-image: url('./img/bk.gif'); background-repeat: no-repeat; height: 40px"
					align="center">
					<br />Copyright © 2014 Soft121.jhc All rights reserved.
				</div>
			</div>
	</div>
</body>
</html>
